package com.study.demo;

import java.util.ArrayList;
import java.util.Arrays;

import java.util.List;

public class Top10 {
	
	
	public static void main(String[] args) {
		
		String[] arrays = {"a","b"};
		
		System.out.println(arrays[1]);
		
		@SuppressWarnings("unchecked")
		List<String> list = (List<String>) Arrays.asList(arrays);
		
		System.out.println(list);
		
		ArrayList<String> arrayList = new ArrayList<String>(Arrays.asList(arrays));
		
		arrayList.add("add");
		
		System.out.println(arrayList);
		
	}
	
	

}
